// This is a part of the Microsoft Foundation Classes C++ library.
// Copyright (C) Microsoft Corporation
// All rights reserved.
//
// This source code is only intended as a supplement to the
// Microsoft Foundation Classes Reference and related
// electronic documentation provided with the library.
// See these sources for detailed information regarding the
// Microsoft Foundation Classes product.

#pragma once


#include "Common/Display/Display.h"
#include "GdiplusHeaders.h"
#include "GdiplusTypes.h"

using namespace Gdiplus;
/////////////////////////////////////////////////////////////////////////////
// CInfoBar window

class CImagePane : public CDockablePane
{
// Construction
public:
	CImagePane();

// Attributes
public:
	IDWWindow*	m_pIWindow;
	IDWDIB*		m_pIDib;
	IDWDraw*	m_pIDraw;
	IDWSynchronizer*	m_pISync;
//	CGDIPlusDisplay* m_pColors;
	HWND		m_hwndDisplay;
	int			m_nDisplayList;
	//display related
	Image*		m_pActiveImg; //active image
	long		m_lImgWidth,m_lImgHeight; //current image width and height

	float m_dvRes,m_dhRes;
	BOOL m_bImgLoaded;
// Operations
public:
	BOOL ShowImage( CString strImg);
	BOOL DeInitialize();
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CInfoBar)
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CImagePane();

	// Generated message map functions
protected:
	//{{AFX_MSG(CInfoBar)
	afx_msg void OnPaint();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
public:
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnSize(UINT nType, int cx, int cy);
};
